package lesson.ch10;

import org.springframework.beans.factory.annotation.Autowired;

public class PeopleServiceBean {
    @Autowired
    private PeopleDao peopleDao;    
    public People getUser(int id) {
    	return peopleDao.getUserByid(id);
    }
    public void save(People p) {
    	peopleDao.save(p);;
    }
   
    
}